home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / ib.511 < prev    next >
Text File  |  1992-02-06  |  1KB  |  15 lines

  1. Interface Builder nib module file's owner
  2.  
  3. Q:  How do I create a nib module which is owned by something other than a subclass of application or a subclass of object?
  4.  
  5. A: When you create a new module, IB prompts you to choose who is going to own it:  a subclass of object or a subclass of application.  If you had planned for the owner to be one of those two, that works well.  But what if you want the nib module to be owned by a subclass of a subclass of Object or by a subclass of Control or any other class in your class heirarchy?  When you first create the new nib module, go ahead and tell IB that you want it to be owned by some subclass of Object.  Then we'll change it.  Add the class you want as the owner to your class heirarchy.  Select the File's Owner icon in the File Window of IB (the small window with the icons in the lower left corner of screen).  Choose "Attributes" from the Inspector panel pop-up list.  There is a scrolling list of custom classes, select your custom class from the list and click "OK".  You've done it! 
  6.  
  7. See also NextAnswer ib.510.
  8.  
  9. QA511
  10.  
  11. Valid for 1.0
  12. Valid for 2.0
  13.  
  14.  
  15.